
#include <stdio.h>

main()
{
     int c, t;

     t = ' ';
     while ((c = getchar()) != EOF){
	  if (c != ' ' && c != '\t' && c != '\n')
	       putchar(c);
	  else if (t != ' ' && t != '\t' && t != '\n')
	       putchar('\n');
	  t = c;
     }
}
